﻿/*
 * Jonathan
 * Created by: Jonathan Montiverdi
 * Date: 6/14/2012
 * License: http://jonathan.codeplex.com/license
 */
using System;

namespace Jonathan.DataAccess.Sqlite
{
   /// <summary>
   /// Specifies that an object is an options table with only one row in the table.
   /// </summary>
   [AttributeUsage (AttributeTargets.Class)]
   public class SqliteTableAttribute : Attribute
   {
      /// <summary>
      /// Initializes a new options table attribute.
      /// </summary>
      /// <param name="tableName">Name of table in database.</param>
      /// <param name="tableType">Type of sqlite table.</param>
      public SqliteTableAttribute (string tableName, SqliteTableType tableType)
      {
         this.TableName = tableName;
         this.TableType = tableType;
      }
      
      /// <summary>
      /// Gets or Sets the name of the table.
      /// </summary>
      public string TableName { get; private set; }
      
      /// <summary>
      /// Gets or Sets the type of the table.
      /// </summary>
      public SqliteTableType TableType { get; private set; }
   }
}
